<html>
<head>
<title>::::{$siteinfo.systeminfo}::::</title>
<link href="{$siteinfo.tempdir}images/index.css" rel="stylesheet"
	type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="inc/js/jquery.js" type="text/javascript"></script>
<script src="inc/js/jquery-kwor.js"
	type="text/javascript"></script>
<script language="javascript">
$(function(){
//全选、全不选
$("#chkall").click(function(){
if(this.checked==true)
{
$(".list1 input[type=checkbox]").checkall();
}else
{
$(".list1 input[type=checkbox]").uncheckall();
}
});

//反选
$("#bchkall").click(function(){
$(".list1 input[type=checkbox]").bcheckall();
});

//全部删除
$("#delall").click(function(){
 var str="";  
 $(".list1 input[type=checkbox][checked]").each(function(){        
  str += $(this).val()+ ",";  
 });
 if (str==""){        
  alert('请选择删除项');       
  return false;
  }else
  {
  
   var isdel = window.confirm("单击“确定”继续。单击“取消”停止。");
   if (isdel){
	  /**************************************/
	 $.ajax({           
		   type: "POST",
		   url:  "do/ajax/aj_admin.php",    
		   data: "action=delallmember&delID="+str,
		   success: function(msg){             
		    if (msg!==""){                
		     alert(msg);  
		     location.reload();            
		    }           
		   }
		  });
	  /**************************************/

    }
  }
});


})
</script>
</head>
<body>
<table width="102%" height="81%" border="0" cellpadding="0"
	cellspacing="0">
	<tr>
		<td height="283" valign="top">
		<form name="form1" method="post">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="110" class="list black"><input type="checkbox"
					name="chkall" id="chkall">编号</td>
				<td width="100" class="list black">会员名称</td>
				<td width="120" class="list black">会员类型</td>
				<td width="110" class="list black">会员邮件</td>
				<td width="110" class="list black">会员电话</td>
				<td width="110" class="list black">会员积分</td>
				<td width="110" class="list black">会员管理</td>
			</tr>
			<!-- {if $memberlist} -->
			<!-- 输出详细会员信息 -->
			<!-- {foreach name=memberlist item=item from=$memberlist} -->
			<tr onMouseOut="this.className=''"
				onMouseOver="this.className='list-bg'">
				<td align="center" class="list1"><input type="checkbox"
					name="chkid{$item.id}" id="{$item.id}" value="{$item.id}">{$item.id}</td>
				<td align="center" class="list1">{$item.name}</td>
				<td align="center" class="list1">{$item.membertype}</td>
				<td align="center" class="list1">{$item.mail}</td>
				<td align="center" class="list1">{$item.tel}</td>
				<td align="center" class="list1">{$item.integral}</td>
				<td align="center" class="list1 pl8"><a href="?action=edit&id={$item.id}">编辑</a></td>
			</tr>
			<!-- {/foreach} -->
			<!-- {else} -->
			<tr>
				<td colspan='7' align='center'><font color='red'>会员数据为空</font></td>
			</tr>
			<!-- 输出详细会员信息 -->
			<!-- 	{/if} -->

			<tr>
				<td height="32" colspan="7" align="center"
					background="{$siteinfo.tempdir}images/list_bottm_bg.gif"
					class="list1">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					
									<tr>
						<td width="20%" height="35">&nbsp;<input type="button"
							value="反选" id="bchkall" name="bchkall">&nbsp;&nbsp;|&nbsp;&nbsp;
						<input type="button" value="删除" id="delall" name="delall">&nbsp;&nbsp;|&nbsp;&nbsp;
						<input type="button" value="添加"  onclick="javascript:window.location.href='?action=add';" /></td>
						<td width="31%">{$fypage}</td>
					
					</tr>

				</table>
				</td>
			</tr>
		</table>
		</form>

		<table width="100%" height="40" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td>&nbsp;</td>
			</tr>
		</table>
		</td>
	</tr>
</table>

</body>
</html>